package org.anachronos.jeep.core.trace.impl;

import java.util.HashSet;
import java.util.Set;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

@XmlType
@XmlAccessorType(XmlAccessType.FIELD)
public class Class extends NamedElement  {
	@XmlElement
	private Set<Method> methods = 
		new HashSet<Method>();
	
	/**
	 * Required by jaxb.
	 */
	public Class() {
		super();
	}
	
	public Class(final String name, final String id) {
		super(name, id);
	}
	
	public Set<Method> getMethods() {
		return methods;
	}
	
	public void add(final Method method) {
		methods.add(method);
	}
}
